cabc23150772e1ba7124ead95e509c99284475b0,shell/src/main/java/tachyon/shell/command/AbstractACLCommand.java,AbstractACLCommand,chown,#TachyonURI#String#boolean#,43
Before Change
try {
SetAclOptions options =
new SetAclOptions.Builder().setOwner(owner).setRecursive(recursive).build();
if (mTfs.setAcl(path, options)) {
System.out.println("Changed owner of " + path + " to " + owner);
} else {
throw new IOException("Failed to changed owner of " + path + " to " + owner);
}
} catch (TachyonException e) {
throw new IOException(e.getMessage());
After Change
try {
SetAclOptions options =
new SetAclOptions.Builder().setOwner(owner).setRecursive(recursive).build();
mTfs.setAcl(path, options);
System.out.println("Changed owner of " + path + " to " + owner);
} catch (TachyonException e) {
throw new IOException("Failed to changed owner of " + path + " to " + owner + " : "
+ e.getMessage());